package route

import (
	"github.com/gin-gonic/gin"
    
    "collecter/app/controller/admin"
    "collecter/app/middleware"
)

/*
 *  regiterAdminRouter
 * @Description: 后台路由组注册
 * @param router
 * @return *gin.Engine
 */
func regiterAdminRouter(router *gin.Engine) *gin.Engine {
	adRouter := router.Group("/admin")
	// 记录后台管理员请求日志
	adRouter.Use(middleware.RecordRequestLog())
	{
		adRouter.GET("/", (&admin.IndexController{}).Index)
		adRouter.GET("/index", (&admin.IndexController{}).Index)

	}
	return router
}
